package com.example.apiservice.client.fallback;

import com.example.apiservice.client.StudentClient;
import com.example.common.domain.Result;
import com.example.common.domain.dto.HomeworkDto;
import com.example.common.domain.vo.PageWithAnswer;
import com.example.common.domain.vo.QuestionWithAnswerVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FallbackFactory;

@Slf4j
public class StudentClientFallbackFactory implements FallbackFactory<StudentClient> {
    @Override
    public StudentClient create(Throwable cause) {
        return new StudentClient() {


            @Override
            public Result<PageWithAnswer<QuestionWithAnswerVO>> getHomework(HomeworkDto h) {
                return null;
            }
        };

    }
}
